package br.org.credfaz.sis.action;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

import br.org.credfaz.sis.dao.TceAvalFinanceiraDAO;
import br.org.credfaz.sis.modelo.TceAvalFinanceira;

public class AtualizaTceAvalFinanceiraAction {
	
private List<TceAvalFinanceira> avalfinac;
	
	@Action(value="atualizaAvalfinac", results= {
			@Result(name="ok", type="redirectAction", params= {"actionName", "atualizaClientefisica"})
	})
	public String execute(){
		avalfinac = new TceAvalFinanceiraDAO().lista();
		return "ok";
	}
	public List<TceAvalFinanceira> getTceAvalFinanceira(){
		return avalfinac;
	}

}
